<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page isELIgnored="false"%>
<%@ page import="java.util.List"%>
<%@ page import="com.oocl.ha.entity.Merchant"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<title>商家信息管理</title>
<link href="../css/merchant.css" rel="stylesheet" type="text/css" />
<script language="JavaScript"
	src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<script language="JavaScript" src="../js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css" href="../css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="../css/add_dish.css" />

<link rel="stylesheet" type="text/css" href="../css/normalize.css" />
<link rel="stylesheet" type="text/css" href="../css/demo.css" />
<link rel="stylesheet" type="text/css" href="../css/icons.css" />
<link rel="stylesheet" type="text/css" href="../css/component.css" />
<link rel="stylesheet" type="text/css" href="../css/head.css" />

</head>
<body>
	<ul id="nav" class="hul">
		<img src="http://10.222.232.168:83/img/logo.png" />
		<li class="logout"><a href="logOut">注销</a></li>
		<li class="logout"><a href="orderManager.jsp" id="newMsg"></p></a></li>
	</ul>
	<div id="st-container" class="st-container">
		<!--
        example menus
        these menus will be on top of the push wrapper
    -->
		<nav class="st-menu st-effect-1" id="menu-1">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-2" id="menu-2">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-4" id="menu-4">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-5" id="menu-5">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-9" id="menu-9">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-10" id="menu-10">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-11" id="menu-11">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-12" id="menu-12">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>

		<nav class="st-menu st-effect-13" id="menu-13">
			<h2 class="icon icon-lab">商家</h2>
			<ul>
				<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
				<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
				<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
				<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
			</ul>
		</nav>


		<div class="st-pusher">
			<nav class="st-menu st-effect-3" id="menu-3">
				<h2 class="icon icon-lab">商家</h2>
				<ul>
					<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
					<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
					<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
					<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
				</ul>
			</nav>

			<nav class="st-menu st-effect-6" id="menu-6">
				<h2 class="icon icon-lab">商家</h2>
				<ul>
					<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
					<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
					<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
					<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
				</ul>
			</nav>

			<nav class="st-menu st-effect-7" id="menu-7">
				<h2 class="icon icon-lab">商家</h2>
				<ul>
					<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
					<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
					<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
					<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
				</ul>
			</nav>

			<nav class="st-menu st-effect-8" id="menu-8">
				<h2 class="icon icon-lab">商家</h2>
				<ul>
					<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
					<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
					<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
					<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
				</ul>
			</nav>

			<nav class="st-menu st-effect-14" id="menu-14">
				<h2 class="icon icon-lab">商家</h2>
				<ul>
					<li><a class="icon icon-data" href="dishManager.jsp">菜单管理</a></li>
					<li><a class="icon icon-study" href="orderManager.jsp">订单管理</a></li>
					<li><a class="icon icon-wallet" href="historyOrder.jsp">历史订单</a></li>
					<li><a class="icon icon-phone" href="merchentMsg.jsp">商家信息</a></li>
				</ul>
			</nav>
			<div class="st-content">
				<div class="st-content-inner">

					<div class="main clearfix">
						<div id="st-trigger-effects" class="column">

							<button data-effect="st-effect-8">商家管理</button>

						</div>
						<div class="dish">

							<form action="updateMerchantMsg" method="post"
								enctype="multipart/form-data" class="bootstrap-frm">
								<table>
									<tr>
										<td><label>用户名</label></td>
										<td id="account"></td>
									</tr>
									<tr>
										<td><label>店名</label></td>
										<td><input type="text" name="shopName" id="shopName"></td>
									</tr>
									<tr>
										<td><label>图标</label></td>
										<td><input type="file" name="icon" /></td>
									</tr>
									<tr>
										<td><label>地址</label></td>
										<td><input type="text" name="address" id="address"></td>
									</tr>
									</tr>
									<tr>
										<td><label>评分</label></td>
										<td id="star"></td>
									</tr>
									<tr>
										<td colspan="2"><input type="submit" id="updateMsgBtn"
											value="更改信息" class="button"></td>
									</tr>
								</table>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="../js/classie.js"></script>
	<script src="../js/sidebarEffects.js"></script>

</body>

<script type="text/javascript">
	$(document).ready(function() {

		$.ajax("findMerchant", {
			method : "GET",
			type : "json",
			success : function(result) {
				console.log(result);
				$('#account').append(result.account);
				$('#shopName').val(result.shopName);
				$('#address').val(result.address);
				$('#star').append(result.star);
			}
		});

	});
</script>
</html>


